Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should update interest after process_send immediately #364

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sankred9527
Copy link

some tcp server can't work with gnirehtet well .

old code work in this way:

In this situation :
relay-rust call process() first , and both ready.is_readable() and ready.is_writable() are true .

relay-rust do process_send() successfully , and then call process_receive()? ( ? is important )
process_receive()? throw error(would block) to on_ready() , on_ready() will ignore this err_wouldblock .
BECAUSE process_receive throw error ,so self.update_interests(selector) in process() won't be called .

Ant the next process() will still be interest with read and write .
but the write buff is null ,so the connection is closed .

@sankred9527
Copy link
Author

I update my patch , make it more clearly .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant